-- GENERATED SPELL FOR [Mirdoran the Fallen] --


function spell0_16250(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16250', 8251, 1)
end

function spell1_16250(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16250', 30333, 1)
end

function Sorts_16250(pUnit, Event)
local choix_sorts_16250 = math.random(0, 1)
if choix_sorts_16250 == 0 then
pUnit:RegisterEvent('spell0_16250', 1, 1)
end
if choix_sorts_16250 == 1 then
pUnit:RegisterEvent('spell1_16250', 1, 1)
end
end

function mob16250_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16250', math.random(1500, 3000), 1)
end

function mob16250_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16250_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16250_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16250, 1, 'mob16250_Action')
RegisterUnitEvent(16250, 2, 'mob16250_Leave')
RegisterUnitEvent(16250, 3, 'mob16250_Kill')
RegisterUnitEvent(16250, 4, 'mob16250_Die')
